package com.ziyun.erp.modules.logistics.service;

import com.baomidou.mybatisplus.service.IService;
import com.ziyun.erp.modules.logistics.dto.ErpLogisticsDto;
import com.ziyun.erp.modules.logistics.dto.LogisticsPayDto;
import com.ziyun.erp.modules.logistics.vo.CostFormVo;
import io.renren.common.utils.PageUtils;
import com.ziyun.erp.modules.logistics.entity.ErpLogisticsEntity;
import io.renren.common.utils.R;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * 物流配送表
 *
 * @author guizhao
 * @email ...
 * @date 2018-08-31 10:12:35
 */
public interface ErpLogisticsService extends IService<ErpLogisticsEntity> {

    PageUtils queryPage(Map<String, Object> params);

    R back(Integer logiId);

    R saveOrderLogisticsInfo(ErpLogisticsDto erpLogisticsDto, String userId, String createName);

    R enteringCost(CostFormVo costFormVo);

    R saveYangluoLogisticsInfo(ErpLogisticsDto erpLogisticsDto, String userId, String createName);

    R searchLogisticsInfoApi(Integer logiId, String logiNo);

    String exportLogistics(List<Map<String,Object>> mapData);

    R updateLogisticsInfo(Integer logiId, String logiNo);

    R deleteLogi(Integer logiId);

    R batchPayConfim(LogisticsPayDto logisticsPayDto);

    R batchAudit(Integer[] logiIds, Long userId);

    R logiCostCount(Integer[] logiIds);

    R importLogistics(MultipartFile multipartFile, Long userId, String username);
}

